package com.wf.ew.storage.service;

import com.wf.ew.common.JsonResult;
import com.wf.ew.common.PageResult;
import com.wf.ew.system.model.User;
import com.wf.ew.storage.model.Warehouse;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;

/**
 *
 * 数据服务层接口
 * @author : Doman
 * @date : 2019-11-18 12:36:43
 * @version ：1.0
 */
public interface WarehouseService {

	/**
	 * 获取表格
	 * @param page
	 * @param warehouse
	 * @return
	 */
	public String list(PageResult<T> page, Warehouse warehouse, User loginUser);
	
	/**
	 * 获取list
	 * @param warehouse
	 * @return
	 */
	public List<Warehouse> list(Warehouse warehouse, User loginUser);
	
	/**
	 * 根据Id查询
	 * @param warehouse
	 * @return
	 */
	public Warehouse getById(Warehouse warehouse);
	
	/**
	 * 保存
	 * @param warehouse
	 * @param loginUser
	 * @return
	 */
	public JsonResult add(Warehouse warehouse, User loginUser);
	
	/**
	 * 修改
	 * @param warehouse
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(Warehouse warehouse, User loginUser);
	
	/**
	 * 删除
	 * @param warehouse
	 * @param loginUser
	 * @return
	 */
	public JsonResult delete(Warehouse warehouse, User loginUser);

}
